<?php 
	$this->bodyAttribute = 'id="main_page"';
?>

<div id="nav" style="display:none;">
  <dl>
    <dt>当前位置：</dt>
    <dd class="link">网址管理</dd>
    <!--导航-->
    <dd class="link">网址列表</dd>
    <!--导航-->
  </dl>
</div>
<script type="text/javascript">
	if ($.browser.msie) {
		document.execCommand("BackgroundImageCache", false, true);
	}
	var nav = document.getElementById("nav");
	var pnav = window.parent.document.getElementById("nav")
	pnav.innerHTML = nav.innerHTML;
</script>
<div class="wrap">
  <div class="container">
    <div id="main">
      <div class="con">
        <form action="?c=site_manage&a=search" method="get">
          <input type="hidden" name="c" value="site_manage"/>
          <input type="hidden" name="a" value="search"/>
          <div class="table">
            <div class="th"> 站点搜索:
              <input type="text" value="" id="keyword" name="keyword"/>
              <select name="search_type">
                <option value="name">名称</option>
                <option value="url"  >网址</option>
              </select>
              <input type="submit" value="搜索" />
            </div>
          </div>
        </form>
        <form action="?c=site_manage&a=list_edit" method="post">
          <input type="hidden" name="referer" value="/admin/index.php?c=site_manage"/>
          <div class="table">
            <div class="th">
              <div class="form fl">
                <input type="button" value="添加网址" onclick="self.location='?c=site_manage&a=edit&action=add&classid=0'"/>
                &nbsp;
                <label for="alltopic"><a href='?c=class'>选择分类</a></label>
                &nbsp;
                &nbsp;&nbsp;<a href='?c=site_manage'>查看所有分类</a>
                </label>
                &nbsp;
                &nbsp;&nbsp;<a href="?c=site_manage&isend=1">查看过期站点</a>&nbsp; </div>
            </div>
            <table class="admin-tb" id="js_data_source">
              <tr>
                <th width="41" class="text-center">删除</th>
                <th width="40">推荐</th>
                <th width="70">排序</th>
                <th width="120">网站</th>
                <th width="180">网址</th>
                <th width="80">分类</th>
                <th width="80">开始时间</th>
                <th width="80">结束时间</th>
                <th>添加人</th>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[11418]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[11418]" />
                  <input type="hidden" name="norecommend[11418]" value="1"/></td>
                <td><input type="text" name="order[11418]" class="textinput" tabindex="11" value="1" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=11418"><span style="color:">起点中文网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.qidian.com/">http://www.qidian.com/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[3]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[3]" />
                  <input type="hidden" name="norecommend[3]" value="1"/></td>
                <td><input type="text" name="order[3]" class="textinput" tabindex="11" value="2" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=3"><span style="color:">小说阅读网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.readnovel.com">http://www.readnovel.com</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[32158]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[32158]" />
                  <input type="hidden" name="norecommend[32158]" value="1"/></td>
                <td><input type="text" name="order[32158]" class="textinput" tabindex="11" value="3" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=32158"><span style="color:">红袖添香</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.hongxiu.com/?114la">http://www.hongxiu.com/?114la</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[38983]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[38983]" />
                  <input type="hidden" name="norecommend[38983]" value="1"/></td>
                <td><input type="text" name="order[38983]" class="textinput" tabindex="11" value="4" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=38983"><span style="color:">原文小说网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.yuanwen.com/">http://www.yuanwen.com/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[38647]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[38647]" />
                  <input type="hidden" name="norecommend[38647]" value="1"/></td>
                <td><input type="text" name="order[38647]" class="textinput" tabindex="11" value="5" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=38647"><span style="color:">来书小说</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.laishu.com/">http://www.laishu.com/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[23]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[23]" />
                  <input type="hidden" name="norecommend[23]" value="1"/></td>
                <td><input type="text" name="order[23]" class="textinput" tabindex="11" value="6" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=23"><span style="color:">幻剑书盟</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://html.hjsm.tom.com/">http://html.hjsm.tom.com/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[38691]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[38691]" />
                  <input type="hidden" name="norecommend[38691]" value="1"/></td>
                <td><input type="text" name="order[38691]" class="textinput" tabindex="11" value="7" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=38691"><span style="color:">言情小说吧</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.xs8.cn">http://www.xs8.cn</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[6]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[6]" />
                  <input type="hidden" name="norecommend[6]" value="1"/></td>
                <td><input type="text" name="order[6]" class="textinput" tabindex="11" value="8" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=6"><span style="color:">晋江原创网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.jjwxc.net/">http://www.jjwxc.net/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[30696]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[30696]" />
                  <input type="hidden" name="norecommend[30696]" value="1"/></td>
                <td><input type="text" name="order[30696]" class="textinput" tabindex="11" value="9" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=30696"><span style="color:">17K文学网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.17k.com/">http://www.17k.com/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[1]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[1]" />
                  <input type="hidden" name="norecommend[1]" value="1"/></td>
                <td><input type="text" name="order[1]" class="textinput" tabindex="11" value="10" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=1"><span style="color:">潇湘言情小说</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.xxsy.net/">http://www.xxsy.net/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[13]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[13]" />
                  <input type="hidden" name="norecommend[13]" value="1"/></td>
                <td><input type="text" name="order[13]" class="textinput" tabindex="11" value="11" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=13"><span style="color:">逐浪文学网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.zhulang.com">http://www.zhulang.com</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[41]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[41]" />
                  <input type="hidden" name="norecommend[41]" value="1"/></td>
                <td><input type="text" name="order[41]" class="textinput" tabindex="11" value="12" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=41"><span style="color:">看书小说网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.qukanshu.com/">http://www.qukanshu.com/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[43]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[43]" />
                  <input type="hidden" name="norecommend[43]" value="1"/></td>
                <td><input type="text" name="order[43]" class="textinput" tabindex="11" value="13" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=43"><span style="color:">翠微居小说</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.cuiweiju.com/">http://www.cuiweiju.com/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[38389]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[38389]" />
                  <input type="hidden" name="norecommend[38389]" value="1"/></td>
                <td><input type="text" name="order[38389]" class="textinput" tabindex="11" value="14" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=38389"><span style="color:">九滨免费小说</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.9bin.com">http://www.9bin.com</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[40820]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[40820]" />
                  <input type="hidden" name="norecommend[40820]" value="1"/></td>
                <td><input type="text" name="order[40820]" class="textinput" tabindex="11" value="15" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=40820"><span style="color:">四月天原创网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.4yt.net/">http://www.4yt.net/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[39584]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[39584]" />
                  <input type="hidden" name="norecommend[39584]" value="1"/></td>
                <td><input type="text" name="order[39584]" class="textinput" tabindex="11" value="16" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=39584"><span style="color:">凤鸣轩小说网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.fmx.cn/">http://www.fmx.cn/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[38600]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[38600]" />
                  <input type="hidden" name="norecommend[38600]" value="1"/></td>
                <td><input type="text" name="order[38600]" class="textinput" tabindex="11" value="17" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=38600"><span style="color:">梦想文学网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.mx99.com">http://www.mx99.com</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[38584]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[38584]" />
                  <input type="hidden" name="norecommend[38584]" value="1"/></td>
                <td><input type="text" name="order[38584]" class="textinput" tabindex="11" value="18" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=38584"><span style="color:">小说天下网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.xstxw.com">http://www.xstxw.com</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[40821]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[40821]" />
                  <input type="hidden" name="norecommend[40821]" value="1"/></td>
                <td><input type="text" name="order[40821]" class="textinput" tabindex="11" value="19" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=40821"><span style="color:">玄幻天空小说网</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.xhsky.net/">http://www.xhsky.net/</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td class="text-center"><input rel="del" type="checkbox" name="delete[41082]"  /></td>
                <td class="text-center"><input rel="dis" type="checkbox" name="recommend[41082]" />
                  <input type="hidden" name="norecommend[41082]" value="1"/></td>
                <td><input type="text" name="order[41082]" class="textinput" tabindex="11" value="20" /></td>
                <td><a href="?c=site_manage&a=edit&action=modify&id=41082"><span style="color:">好心情原创文学</span></a></td>
                <td><div style=" width:180px;" class="hideText" title="http://www.goodmood.cn">http://www.goodmood.cn</div></td>
                <td><a href="?c=site_manage&classid=645">小说阅读</a></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr class="foot-ctrl">
                <td colspan="9" class="gray">选择: <a href="#" onClick="checkTb1(1);">全选</a> - <a href="#" onClick="checkTb1(3);">反选</a> - <a href="#" onClick="checkTb1(2);">无</a></td>
              </tr>
            </table>
            <script type="text/javascript">
                    	$(document).ready(function(){
                    		$("#js_data_source").find("input[rel='del']").each(function(i){
								$(this).bind("click",function(){
									var tr = $(this).parent().parent();
									var input = tr.find("input[rel='dis']");
									if(this.checked){
										$(input).attr("checked","");
										$(input).attr("disabled","disabled");
									}
									else{
										$(input).attr("disabled","");
									}
								});								
							});
                            /*
							$("#js_data_source").find("input[rel='del']").each(function(i){
								
								$(this).bind("click",function(){
									var tr = $(this).parent().parent();
									var input = tr.find("input[rel='dis']");
									if(this.checked){
										$(input).attr("oledchecked",$(input).attr("checked"));
										$(input).attr("checked","");
										$(input).attr("disabled","disabled");
									}
									else{
										$(input).attr("disabled","");
										$(input).attr("checked",$(input).attr("oledchecked"));
									}
									
									$(".admin-tb").find("input[rel='del']").each(function(i){
										var tr2 = $(this).parent().parent();
										if(this.checked){
											tr2.addClass("checked");
										}
										else{
											tr2.removeClass("checked");
										}
									})
								});								
							});
                            */
							$("#js_data_source").find("input[rel='dis']").change(function(){
                                if ($(this).next('input[type="hidden"]').val() == 1) $(this).next('input[type="hidden"]').val(0);
                                else $(this).next('input[type="hidden"]').val(1);
							});
						});
                    </script>
            <div class="th">
              <div class="pages"> <span class="nextprev">&laquo; 上一页</span> <span class="current">1</span> <a href="?c=site_manage&classid=0&isend=0&start=20">2</a> <a href="?c=site_manage&classid=0&isend=0&start=40">3</a> <a href="?c=site_manage&classid=0&isend=0&start=60">4</a> <a href="?c=site_manage&classid=0&isend=0&start=80">5</a> <a href="?c=site_manage&classid=0&isend=0&start=100">6</a> <a href="?c=site_manage&classid=0&isend=0&start=120">7</a> <a href="?c=site_manage&classid=0&isend=0&start=140">8</a> <a href="?c=site_manage&classid=0&isend=0&start=160">9</a> <a href="?c=site_manage&classid=0&isend=0&start=180">10</a> <a href="?c=site_manage&classid=0&isend=0&start=200">11</a> <a href="?c=site_manage&classid=0&isend=0&start=220">12</a> <a href="?c=site_manage&classid=0&isend=0&start=240">13</a> <a href="?c=site_manage&classid=0&isend=0&start=260">14</a> <span>…</span> <a href="?c=site_manage&classid=0&isend=0&start=11080">555</a> <a href="?c=site_manage&classid=0&isend=0&start=20">下一页 &raquo;</a> </div>
              <div class="form">
                <input value="提交修改" type="submit"/>
                &nbsp; </div>
            </div>
          </div>
        </form>
      </div>
      <!--/ con--> 
    </div>
  </div>
  <!--/ container--> 
</div>
<!--/ wrap--> 
<script type="text/javascript">
	var list;
	$(document).ready(function(){
		list = $("#js_data_source").find("input[type='checkbox']").filter("[rel='del']");
		list.each(function(i){
			$(this).bind("click",function(){
				CheckHanler();
			});
		});
	});
	
	var CheckHanler = function(){
		list.each(function(i){
			var input = $(this);
			if(this.checked){
				input.parent().parent().addClass("checked");
			}
			else{
				input.parent().parent().removeClass("checked");
			}
		});
	}
	
	var checkTb1 = function(selectType){
		CheckInit("js_data_source",selectType);
	}
	
	var CheckInit = function(tabelId,selectType){
		if(list == undefined){
			list = $("#" + tabelId).find("input[type='checkbox']").filter("[rel='del']");
		}
		CheckControl(list,selectType,CheckHanler)
	}
	
	var CheckControl = function(childs,selectType,checkHandler){
		for(var i = 0,len = childs.length; i < len; i++){
			switch(selectType){
				case 1:	//全选
					childs[i].checked = true;
					break;
				case 2:	//不选
					childs[i].checked = false;
					break;
				case 3:	//反选
					childs[i].checked = !childs[i].checked;
					break;
			}
		}
		if(checkHandler){
			checkHandler();
		}
	}
</script>
<p style="text-align:center;padding:15px;color:#6B7355;
font-family:Verdana;
font-size:12px;"> Powered by <a href="http://www.ylmf.com" target="_blank"> <b>雨林木风</b></a> &copy; 2009 <a href="http://www.114la.com" target="_blank"> <b>114la.com</b></A><a href="http://www.ylmf.com" target="_blank"></a></p>
